#ifndef TIMETABLEITEM_H
#define TIMETABLEITEM_H
#include <string>
#include "Time.h"
class TimeTableItem
{
private:
    Time start;
    Time end;
    int direction;
    int actualCarring = 0;
public:
    TimeTableItem(Time s, Time e, int d)
            :start(s), end(e), direction(d)
    {}
    TimeTableItem(){
        start = Time(0,0);
        end = Time(23, 59);
        direction = 0;
    };

    inline void setStartTime(Time t) {start = t;}
    inline void setEndTime(Time t) {end = t;}
    inline void setDirection(int d) {direction = d;}
    inline void setCarring(int num) {actualCarring = num;}
    inline void addCarring() {actualCarring++;}
    inline const Time& getStartTime() {return start;}
    inline const Time& getEndTime() {return end;}
    inline int getDirection() const {return direction;}
    inline int getActualCarring() const {return actualCarring;}
};

#endif
